<!DOCTYPE html>
<#include "/ftl/header.ftl">
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript">

$(document).ready(function(){
	 $("#btnsub").on("click",function(){
		 $("#formData").submit();
	 });
});
</script>
<#include "/ftl/menu.ftl">
<body>
<div class="container">  
<div class="row">
            <div class="col-md-12">
                <ol class="breadcrumb">
                   <li><a href="#">用户管理</a></li>
                    <li><a href="#">用户列表</a></li>
                    <li class="active">用户修改</li>
                </ol>
            </div>
        </div>        
        <form  method="post" id="formData">
        <div class="content controls npt col-sm-offset-2 text-center">
      
            <div class="col-md-9">
                
                <div class="block">
                    
                    <div class="content controls">

                        <div class="form-row">
                            <div class="col-md-3">用户名</div>
                            <div class="col-md-9"><input type="text" class="form-control" id="adminName" name="adminName" placeholder="用户名" value="${user.adminName}" ></input></div>
                        </div>
                        <div class="form-row">
                            <div class="col-md-3">密码</div>
                            <div class="col-md-9"><input type="password" class="form-control" id="passWord" name="passWord" placeholder="密码" value="${user.password}"></input></div>
                        </div>

                        <div class="form-row">
                            <div class="col-md-3">角色</div>
                            <div class="col-md-9">
                                <select id="roleId" name="role.id">
                                    <#list roleList as role>
                                    <option value="${role.id}" <#if role.id==user.role.id> selected="selected" </#if>> ${role.roleName}</option>
                                </#list>
                                </select>
                            </div>
                        </div>


                        <div class="form-row">
                            <div class="col-md-3">状态</div>
                            <div class="col-md-9">
                           <select class="check1" id="status" name="status">
                           <option value="0" <#if user.status==0> selected="selected" </#if>>禁用</option>
                            <option value="1" <#if user.status==1> selected="selected" </#if>>正常</option>
                           </select>
                           </div></div>

					<div class="form-row">
								<div class="col-md-12">
								<button class="btn btn-default btn-clean"  id="btnsub" type="button">提交</button>
									
								</div>
							</div>    
                       
                    </div>
                </div>                
         </div>                
    </div>
    </form>
</body>
</html>